//
//  HomeOnlineTrainModel.h
//  ZJControlsClass
//
//  Created by wandoufo on 2024/12/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class HomeOnlineCourseModel;
@class HomeOnlineCoursewareModel;

@interface HomeOnlineTrainModel : NSObject

@property (nonatomic, copy) NSString *businessId;
@property (nonatomic, copy) NSString *businessName;
@property (nonatomic, copy) NSString *identifier;  // 使用identifier替代id，因为id是保留字
@property (nonatomic, strong) NSArray<HomeOnlineCourseModel *> *courses;

@end

@interface HomeOnlineCourseModel : NSObject

@property (nonatomic, copy) NSString *identifier;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign) NSInteger totalCoursewareNum;
@property (nonatomic, assign) NSInteger completedCoursewareNum;
@property (nonatomic, copy) NSString *coverImage;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, copy) NSString *statusName;
@property (nonatomic, strong) NSArray<HomeOnlineCoursewareModel *> *coursewares;
@property (nonatomic, copy) NSString *remarks;
@property (nonatomic, copy) NSString *taskId;

@end

@interface HomeOnlineCoursewareModel : NSObject

@property (nonatomic, copy) NSString *identifier;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign) NSInteger sort;
@property (nonatomic, assign) NSInteger status;
@property (nonatomic, copy) NSString *statusName;
@property (nonatomic, assign) NSInteger userCount;
@property (nonatomic, copy) NSString *progress;
@property (nonatomic, copy) NSString *remarks;
@property (nonatomic, copy) NSString *path;
@property (nonatomic, copy) NSString *fileName;
@property (nonatomic, copy) NSString *fileUrl;
@property (nonatomic, copy) NSString *fileId;
@property (nonatomic, copy) NSString *fileType;
@property (nonatomic, assign)BOOL isSelected;

@end

NS_ASSUME_NONNULL_END
